package com.tnl.app.dao;

import org.springframework.stereotype.Repository;

import com.biz.hunter.db.entity.UserInfo;
import com.tnl.base.BaseDAO;

@Repository
public class UserInfoDAO {

	public static final String SQL_GETBYUNIONID="select * from userinfo where unionid = ?";
	public UserInfo getByUnionid(String unionid) {
		return BaseDAO.queryForObject(UserInfo.class, SQL_GETBYUNIONID, unionid);
	}
}
